<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>">

		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>notice update</title>
		<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

a {
	text-decoration: none;
}

a:hover {
	color: #eee;
}

a img {
	border: 0;
}

.STYLE1 {
	font-size: 13px;
	color: #000;
}

.STYLE3 {
	font-size: 12px;
	font-weight: bold;
}

.STYLE4 {
	font-size: 12px;
}

.td_bg {
	font-size: 13px;
	background: #fff;
	border: 1px solid #6495ED;
}

/*表单项的字体格式*/
.td_x_bg {
	font-size: 13px;
	font-weight: bold;
	text-align: center;
	background: #BDE3FB;
	height: 40px;
	border: 1px solid #6495ED;
}

.table {
	margin-top: 10px;
}
-->
</style>
		<script language="javascript" src="js/jquery.js"></script>
		<script language="javascript" type="text/javascript" src="js/WebCalendar.js"></script>

	</head>
	<body>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="30" background="images/main/tab_05.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="12" height="30">
								<img src="images/main/tab_03.gif" width="12" height="30" />
							</td>
							<td>
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="46%" valign="middle">
											<table width="100%" border="0" cellspacing="0"
												cellpadding="0">
												<tr>
													<td width="5%">
														<div align="center">
															<img src="images/main/tb.gif" width="16" height="16" />
														</div>
													</td>
													<td width="95%" class="STYLE1">
														<span class="STYLE3">你当前的位置</span>：[公告信息]-[修改信息]
													</td>
												</tr>
											</table>
										</td>
										<td width="54%">
											<table border="0" align="right" cellpadding="0"
												cellspacing="0">
												<tr>
													<td width="80">
														<table width="90%" border="0" cellpadding="0"
															cellspacing="0">
															<tr>
																<td>
																	&nbsp;
																</td>
															</tr>
														</table>
													</td>
													<td width="60">
														<table width="90%" border="0" cellpadding="0"
															cellspacing="0">
															<tr>
																<td class="STYLE1"></td>
																<td class="STYLE1"></td>
															</tr>
														</table>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
							<td width="16">
								<img src="images/main/tab_07.gif" width="16" height="30" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="8" background="images/main/tab_12.gif">
								&nbsp;
							</td>
							<td>
								<!-- 	
								<form action="front/notice_publish.action" method="post">
							 -->
								<form action="front/noticeUpdate.action" method="post">
									<table class="table" border="1" width="40%" align="center"
										cellpadding="2" cellspacing="2" bordercolor="#6495ED">
										<tbody>
											
											<tr>
												<td class="td_x_bg" width="30px">
													<nobr>
													公告标题
													</nobr>
												</td>
												<td class="td_bg">
													<input type="text" name="notice.title" style="border: none" value="<s:property value="noticeList.title"/>" />
												</td>

											</tr>

											<tr>
												<td class="td_x_bg" width="30px">
													<nobr>
													发布时间
													</nobr>
												</td>
												<td class="td_bg">
													<%
														//生成一个Date实例

														java.util.Date publishTime = new java.util.Date();

														//将该Date实例设置成一个pageContext里的属性

														pageContext.setAttribute("now", publishTime);
													%>
<!-- 
													<input type="text"
														name="notice.publishTime"
														value="<s:date name="#attr.now" format="yyyy-MM-dd hh:mm:ss" nice="false"/>"
														onclick="SelectDate(this,'yyyy-MM-dd hh:mm:ss')"
														readonly="true" style="width: 120px; cursor: pointer; border: none;" />
 -->
													<input type="text" name="notice.publishTime" id="publishTime" value="<s:date name="#attr.now" format="yyyy-MM-dd hh:mm:ss" nice="false"/>" 
														onclick="SelectDate(this,'yyyy-MM-dd')" readonly="true" style="width:120px;cursor:pointer;border:none"/>
												</td>
											</tr>

											<tr>
												<td class="td_x_bg" width="30px">
													<nobr>
													公告内容
													</nobr>
												</td>
												<td class="td_bg">
													<textarea rows="10" cols="50" name="notice.content"
														style="border: none" value="<s:property value="notice.content"/>"></textarea>
												</td>

											</tr>

											<tr>
												<td class="td_bg" colspan="2" align="center">
													<input type="hidden" name="notice.id" value="<%=(String)request.getParameter("id") %>" />
													<input type="hidden" name="notice.user.id" value="<s:property value="#session.user.id"/>" />
													<input type="hidden" name="user.id" value="<s:property value="#session.user.id"/>" />
													<input type="submit" value="提交" />
													&nbsp;&nbsp;&nbsp;&nbsp;
													<input type="reset" value="重置" />
												</td>
											</tr>
										</tbody>
									</table>
								</form>
							</td>
							<td width="8" background="images/main/tab_15.gif">
								&nbsp;
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td height="35" background="images/main/tab_19.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="12" height="35">
								<img src="images/main/tab_18.gif" width="12" height="35" />
							</td>
							<td>
							</td>
							<td width="16">
								<img src="images/main/tab_20.gif" width="16" height="35" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</body>
</html>